package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 对话对象 sys_dialogue
 * 
 * @author ruoyi
 * @date 2025-03-09
 */
@Data
public class SysDialogue extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 聊天对话id */
    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    @JsonSerialize(using = ToStringSerializer.class)

    private Long ownerId;
    private String userName;
    private String enterpriseName;
    private String positionName;

    /** 岗位id */
    @JsonSerialize(using = ToStringSerializer.class)
    @Excel(name = "岗位id")
    private Long positionId;

    @TableField(exist = false)
    private SysPosition position ;

    @TableField(exist = false)
    private SysEnterprise enterprise ;

    @TableField(exist = false)
    private Integer openContent = 0 ;

    @TableField(exist = false)
    private Integer unReadNumber = 0;



}
